<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lightdm</Name>
        <Homepage>https://github.com/CanonicalLtd/lightdm</Homepage>
        <Packager>
            <Name>Berk Çakar</Name>
            <Email>berk2238@hotmail.com</Email>
        </Packager>
        <License>GPL2</License>
        <IsA>app</IsA>
        <Icon>lightdm</Icon>
        <Summary>LightDM is a cross-desktop display manager.</Summary>
        <Description>LightDM is a cross-desktop display manager.</Description>
        <Archive type="tarxz" sha1sum="784fc32967e2f6ce98ade49f6998610d4f856e1a">https://github.com/CanonicalLtd/lightdm/releases/download/1.32.0/lightdm-1.32.0.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>itstool</Dependency>
            <Dependency>intltool</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>libxklavier-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
            <Dependency>libxcb-devel</Dependency>
            <Dependency>libXdmcp-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>vala-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>accountsservice-devel</Dependency>
            <Dependency>audit-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">lightdm-default-config.patch</Patch>
            <!--Patch level="1">lightdm-pam_systemd-disable.patch</Patch-->
        </Patches>
    </Source>


    <Package>
        <Name>lightdm</Name>
        <Conflicts>
            <Package>gdm</Package>
            <Package>lxdm</Package>
            <Package>sddm</Package>
        </Conflicts>
        <RuntimeDependencies>
            <!--Dependency>pisi-lightdm-greeter</Dependency--> <!--çember lightdm-->
            <Dependency>pam</Dependency>
            <Dependency>audit</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libxcb</Dependency>
            <Dependency>libXdmcp</Dependency>
            <Dependency>libgcrypt</Dependency>
            <Dependency>libxklavier</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/liblightdm-gobject-1.so*</Path>
            <Path fileType="library">/usr/libexec</Path>
            <Path fileType="library">/usr/lib/lightdm/lightdm-guest-session</Path>
            <Path fileType="library">/usr/lib/tmpfiles.d</Path>
            <Path fileType="library">/usr/lib/girepository-1.0</Path>
            <Path fileType="data">/usr/share/accountsservice</Path>
            <Path fileType="data">/usr/share/bash-completion</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="man">/usr/share/help</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
        </Files>

        <!--AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/lightdm.conf">lightdm.tmpfiles</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/lightdm">lightdm</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/usr/bin/wrapper">wrapper</AdditionalFile>
        </AdditionalFiles-->

        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>lightdm-devel</Name>
        <Icon>development</Icon>
        <Summary>LightDM is a cross-desktop display manager.</Summary>
        <RuntimeDependencies>
            <Dependency release="current">lightdm</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxklavier-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/lightdm-gobject-1</Path>
            <Path fileType="library">/usr/lib/pkgconfig/liblightdm-gobject-1.pc</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/share/vala</Path>
        </Files>
    </Package>

    <Package>
        <Name>liblightdm-qt5</Name>
        <Summary>Qt5 library for LightDM.</Summary>
        <Icon>lightdm</Icon>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>lightdm</Dependency>
            <Dependency>qt5-base</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/liblightdm-qt5-3.so*</Path>
        </Files>
    </Package>

    <Package>
        <Name>liblightdm-qt5-devel</Name>
        <Summary>LightDM is a cross-desktop display manager.</Summary>
        <Icon>development</Icon>
        <RuntimeDependencies>
            <Dependency release="current">liblightdm-qt5</Dependency>
            <Dependency>qt5-base-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/lightdm-qt5-3</Path>
            <Path fileType="library">/usr/lib/pkgconfig/liblightdm-qt5-3.pc</Path>
        </Files>
    </Package>


    <History>
        <Update release="4">
            <Date>2022-09-12</Date>
            <Version>1.32.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2022-06-03</Date>
            <Version>1.30.0</Version>
            <Comment>Rebuild for qt5</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2021-06-05</Date>
            <Version>1.30.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Berk Çakar</Name>
            <Email>berk2238@hotmail.com</Email>
        </Update>
         <Update release="1">
            <Date>2021-05-04</Date>
            <Version>1.30.0</Version>
            <Comment>First Release.</Comment>
            <Name>Berk Çakar</Name>
            <Email>berk2238@hotmail.com</Email>
        </Update>
    </History>
</PISI>
